﻿@using PearAdminMvcApp.Tools
@model PearAdminMvcApp.Models.Student
@{
    ViewBag.Title = "About";
}
@*
@using (Html.BeginPearForm())
{
    @Html.EditorFor(m => m.Name)

    @Html.PearSelect("城市", "city", ViewBag.select as SelectList)


}


@using (Html.BeginPearCard("学生信息管理"))
{
    using (Html.BeginPearForm("form1"))
    {
        @Html.EditorFor(m => m.Name)
        @Html.PearSelect("城市","City",new SelectList(new List<SelectListItem>()
        {
            new SelectListItem(){Text = "邯郸",Value = "1"},
            new SelectListItem(){Text = "石家庄",Value = "2"},
            new SelectListItem(){Text = "邢台",Value = "3"},
        },"Value","Text","2"))
    }
}

@Html.PearIcon("layui-icon-cols","red",23)



<form class="layui-form" lay-filter="myform">
    <div class="layui-form-item">
        <label class="layui-form-label">输入框</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" id="test1" name="date" autocomplete="off">
        </div>
    </div>
    
    <div class="layui-form-item">
        <label class="layui-form-label">输入框</label>
        <div class="layui-input-block">
            <input type="text" name="date" required lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">输入框</label>
        <div class="layui-input-block">
            <input type="text" name="age" required lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
        </div>
    </div>
    <button>提交</button>
    <div id="page1"></div>
</form>
 

@section footer
{
    <script> 
        layui.laypage.render({
            elem: 'page1' //注意，这里的 test1 是 ID，不用加 # 号
            , count: 50,
            limit: 10,
            jump: function (page, first) {
                //首次加载
                if(!first)
                    layui.layer.msg(page.curr);
            }
        });
        layui.laydate.render({
            elem: '#test1' ,//指定元素
            type: 'date',
            range: true
        });

        layui.form.on('submit(myform)',
            function(data) {
                console.log(layui.form.val("myform") );
                return false;
            });

    </script>
    

}
*@
